﻿#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QHostInfo>
#include "mysocket.h"

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
    void showHostIp();

private slots:
    void on_pushButton_listen_clicked();
    void get_peerAddress(QString s);
    void deal_Msg(QString type,QString user,QString password);

private:
    Ui::MainWindow *ui;
    MySocket  *tcpServer;
};

#endif // MAINWINDOW_H
